import 'package:flutter/material.dart';
import 'package:global_time/pages/loading.dart';
import 'package:global_time/router/MyRouter.dart';
import 'package:global_time/theme/dark_theme.dart';
import 'package:global_time/theme/light_theme.dart';



void main() async {

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(

      onGenerateRoute: MyRouter.onGenerateRoute,
      home: const Loading(),

      theme: lightTheme, // 明亮主题
      darkTheme: darkTheme, // 黑暗主题
      themeMode: ThemeMode.system, // 主题模式

      title: 'global_time',
    );
  }
}
